/* 基础样式 */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: white;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
}

.status-indicator {
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: bold;
}

.status-connected {
  background-color: #28a745;
}

.status-disconnected {
  background-color: #dc3545;
}

.status-error {
  background-color: #ffc107;
  color: #333;
}

/* 控制面板 */
.sidebar {
  background-color: #fff;
  padding: 15px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  height: 100vh;
  overflow-y: auto;
}

.card {
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
  font-weight: bold;
}

/* 地图容器 */
.map-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#nav-canvas {
  background-color: #e9ecef;
  display: block;
}

/* 工具按钮 */
.toolbar {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100;
}

.tool-btn {
  width: 40px;
  height: 40px;
  margin: 5px;
  border: none;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
}

.tool-btn.active {
  background-color: #007bff;
  color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
      height: auto;
      padding: 10px;
  }
  
  .map-container {
      height: 60vh;
  }
}